let url = window.location.href.split('/')[window.location.href.split('/').length-1];
let val = [];
export function getFunction(obj){
    if(obj && obj.length){
        obj.forEach(el => {
            if(el.childList && el.childList.length){
                el.childList.forEach(c =>{
                    if(c.url == url){
                        val = c.functionList;
                        // this.functionSet = c.functionList;
                    }
                })
            }
        });
    }
    return val;
}